/**
 * @(#) StartupCommand.as
 *
 * @date		2010. 11. 29
 * @version		1.0
 * @author		Shin, Yunwoo
 * @client		F&amp;U
 * @module		SchoolExp(학자금 신청)
 * @description	start command
 */
package com.skt.common_hr.schoolexp_nos.controller
{
	import com.skt.common_hr.schoolexp_nos.model.*;
	import com.skt.common_hr.schoolexp_nos.view.SchoolExpMediator;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;

	public class StartupCommand extends SimpleCommand implements ICommand
	{

		override public function execute(note:INotification):void
		{
			var app:SchoolExpNos = note.getBody() as SchoolExpNos;
			trace("execute startupCommand in SchoolExp Module");

			// MVC 모델중 View와 관련한 mediator들을 등록한다.
			facade.registerProxy(new SchoolExpListProxy());
			facade.registerProxy(new SchoolExpProxy());
			facade.registerProxy(new AccountProxy());
			facade.registerProxy(new FamilyProxy());
			
			facade.registerProxy(new AttachFileSchoolExpProxy());
			
			facade.registerMediator(new SchoolExpMediator(app.view));
		}
	}
}